home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / modellib / kwrite_f < prev    next >
Encoding:
Text File  |  1990-01-26  |  483 b   |  26 lines

  1. #!/bin/csh
  2. #$argv[1]: name of dynamical system class
  3. # $argv[2-] codenames of dynamical systems in this class
  4. #
  5.  
  6. set outdir = $KAOSHOME/modellib
  7. set outfile = $outdir/class_def.c
  8.  
  9. echo "Collect a set of dynamical sytems to a class ${argv[1]}..."
  10.  
  11. cat > $outfile <<END
  12. /*
  13.     This file is automatically written by kwrite_f.
  14. */
  15. /* KAOS DYNAMICAL SYSTEM CLASS = ${argv[1]} */
  16.  
  17. #include "model.h"
  18.  
  19. END
  20.  
  21. set argum = 
  22. foreach argum ($argv[2-])
  23.     cat ${argum}_def.c >> $outfile 
  24. end
  25. echo Done!
  26.